extends "../haitian-3/haitian-3.gd"


var baseId = ""
var upText1 = "战况把握恢复目标20%血量，并驱散其全部负面效果"
var upText2 = "陨落冰耀额外造成[雷击*3]的技能伤害"
func _extInit():
	._extInit()
	lv = 4             #等级的设置
	addSkill("每{cd}秒赋予血量最低的友军8层<圣盾>", "战况把握", "haitian4", 10)

func _castCdSkill(id):
	._castCdSkill(id)
	if id == "haitian4":
		haitian4()

func haitian4():
	var cha = getFirstCha(2, "sortByHp")
	if cha == null:return
	buff.addShengDun(cha, 8)
	if upgraded == 1:
		healCha(cha, cha.att.maxHp*0.2)
		weakDispel(cha, true)